*******************************************************
* Lyle 05 Jan 11: 						              *
*	-this program serves as a base shell for all	  *
*	 stata do files					                  *
*******************************************************


********************************
* Standard Stata Configuration *
********************************
clear all
set mem 999m
capture log close
set logtype text
cap cd "C:\Users\ejm5\Google Drive\2016_Research\Unemployment_MILEX"
cap cd "C:\Users\Jordan.Becker\Desktop\GD\2016_Research\Unemployment_MILEX"
cap cd "\\usnatonetapp01.eur.state.sbu\profiles\beckerjm\Desktop\2016_Research\Unemployment_MILEX"
log using "log\correlates_figure7.log", replace


*********************
* Prepare Variables *
*********************
use "dta\2016_02_09_uem", clear
sort ccode year
xtset ccode year


********************
* Analyze the Data *
********************
set more off
sort ccode year
xtset ccode year


*Figure 2: Bar Graph With Disaggregated MILEX Percentages by Year*

#delimit;
use "dta\2016_02_09_uem", clear;
preserve;
keep if year>=1985&nato_europe_dummy==1;
graph bar equipment_gdp personnel_gdp operating_gdp infrastructure_gdp, over(year, label(labcolor(black) 
angle(forty_five) labsize(vsmall))) stack yline(2, lcolor(red) lpattern(dash) lwidth(medthick)) 
ytitle("Expenditures/GDP (%), by Mil. Category (Non-U.S. NATO)", size(small) margin(medium)) legend(rows(1) position(6)  size(vsmall) 
label (1 "Equipment") label (2 "Personnel") label (3 "Operating")  label (4 "Infrastructure")) ysize (10) ylab(0(.5)4.5, labsize(vsmall));
graph save output\Figure7disagg_all.gph, replace;
restore;
